package csw;

import java.util.ArrayList;

public class J24ProfessorServiceImpl implements J24ProfessorService {
	

	
	private J24ProfessorDAO pdao;
	
	
	public J24ProfessorServiceImpl() {
		pdao = new J24ProfessorDAOImpl();
	}


	@Override
	public void newProfessor() {
		J24ProfessorVO pvo = new J24ProfessorVO();
		System.out.println(
		pdao.insertProfessor(pvo));
	}
	@Override
	public void readProfessor() {
		ArrayList<J24ProfessorVO> pvoes =
				new ArrayList<>();
		pvoes = pdao.selectProfessor();
		
		for(J24ProfessorVO p : pvoes){
			System.out.println(p);
		}

	}
	@Override
	public void readOneProfessor() {
		String pfno = "";
		ArrayList<J24ProfessorVO> pvoes =
				new ArrayList<>();
		pvoes = pdao.insertOneProfessor(pfno);

	}
	@Override
	public void modifyProfessor() {
		String pfno = "";
		pdao.updateProfessor(pfno);

	}
	@Override
	public void removeProfessor() {
		String pfno = "";
		pdao.deleteProfessor(pfno);
	}

}
